/**
 * Created by bianbian on 16/9/19.
 */

import * as types from '../action/actionTypes';

const initialState = {
    loading: false,
    houseList: []
};

export default function houseReducer(state = initialState, action) {

    switch (action.type) {
        case types.HOUSE_LIST:
            return Object.assign({}, state, {
                loading: true,
                houseList: action.houseList
            });
            break;
        default:
            return state;
    }

}

